package com.github.catvod.spider.merge;

import java.util.Iterator;
import java.util.regex.Pattern;

public abstract class ms {
  public abstract boolean h(Lm paramLm1, Lm paramLm2);
  
  public static final class A extends ms {
    public boolean h(Lm param1Lm1, Lm param1Lm2) {
      for (fa fa : param1Lm2.Qy()) {
        if (!(fa instanceof mF) && !(fa instanceof w2))
          return false; 
      } 
      return true;
    }
    
    public String toString() {
      return ":empty";
    }
  }
  
  public static final class BU extends MC {
    public BU(int param1Int) {
      super(param1Int);
    }
    
    public boolean h(Lm param1Lm1, Lm param1Lm2) {
      boolean bool;
      if (param1Lm2.N() == this.h) {
        bool = true;
      } else {
        bool = false;
      } 
      return bool;
    }
    
    public String toString() {
      return String.format(":eq(%d)", new Object[] { Integer.valueOf(this.h) });
    }
  }
  
  public static final class E extends MC {
    public E(int param1Int) {
      super(param1Int);
    }
    
    public boolean h(Lm param1Lm1, Lm param1Lm2) {
      boolean bool;
      if (param1Lm2.N() > this.h) {
        bool = true;
      } else {
        bool = false;
      } 
      return bool;
    }
    
    public String toString() {
      return String.format(":gt(%d)", new Object[] { Integer.valueOf(this.h) });
    }
  }
  
  public static final class EE extends ms {
    public boolean h(Lm param1Lm1, Lm param1Lm2) {
      param1Lm1 = param1Lm2.lu();
      boolean bool = true;
      if (param1Lm1 == null || param1Lm1 instanceof HZ || param1Lm2.N() != param1Lm1.s().size() - 1)
        bool = false; 
      return bool;
    }
    
    public String toString() {
      return ":last-child";
    }
  }
  
  public static final class H extends ms {
    private final String h;
    
    public H(String param1String) {
      this.h = AR.h(param1String);
    }
    
    public boolean h(Lm param1Lm1, Lm param1Lm2) {
      return AR.h(param1Lm2.g6()).contains(this.h);
    }
    
    public String toString() {
      return String.format(":containsData(%s)", new Object[] { this.h });
    }
  }
  
  public static abstract class HA extends ms {
    String V0;
    
    String h;
    
    public HA(String param1String1, String param1String2) {
      this(param1String1, param1String2, true);
    }
    
    public HA(String param1String1, String param1String2, boolean param1Boolean) {
      boolean bool;
      R2.BQ(param1String1);
      R2.BQ(param1String2);
      this.h = AR.V0(param1String1);
      if ((param1String2.startsWith("'") && param1String2.endsWith("'")) || (param1String2.startsWith("\"") && param1String2.endsWith("\""))) {
        bool = true;
      } else {
        bool = false;
      } 
      param1String1 = param1String2;
      if (bool)
        param1String1 = param1String2.substring(1, param1String2.length() - 1); 
      if (param1Boolean) {
        param1String1 = AR.V0(param1String1);
      } else {
        param1String1 = AR.j(param1String1, bool);
      } 
      this.V0 = param1String1;
    }
  }
  
  public static final class JL extends ms {
    private final String h;
    
    public JL(String param1String) {
      this.h = param1String;
    }
    
    public boolean h(Lm param1Lm1, Lm param1Lm2) {
      return param1Lm2.w().endsWith(this.h);
    }
    
    public String toString() {
      return String.format("%s", new Object[] { this.h });
    }
  }
  
  public static abstract class MC extends ms {
    int h;
    
    public MC(int param1Int) {
      this.h = param1Int;
    }
  }
  
  public static final class RN extends ms {
    private final String h;
    
    public RN(String param1String) {
      this.h = param1String;
    }
    
    public boolean h(Lm param1Lm1, Lm param1Lm2) {
      return this.h.equals(param1Lm2.a());
    }
    
    public String toString() {
      return String.format("#%s", new Object[] { this.h });
    }
  }
  
  public static final class Sf extends ms {
    public boolean h(Lm param1Lm1, Lm param1Lm2) {
      boolean bool;
      param1Lm1 = param1Lm2.lu();
      if (param1Lm1 != null && !(param1Lm1 instanceof HZ) && param1Lm2.K().isEmpty()) {
        bool = true;
      } else {
        bool = false;
      } 
      return bool;
    }
    
    public String toString() {
      return ":only-child";
    }
  }
  
  public static final class TL extends MC {
    public TL(int param1Int) {
      super(param1Int);
    }
    
    public boolean h(Lm param1Lm1, Lm param1Lm2) {
      boolean bool;
      if (param1Lm1 != param1Lm2 && param1Lm2.N() < this.h) {
        bool = true;
      } else {
        bool = false;
      } 
      return bool;
    }
    
    public String toString() {
      return String.format(":lt(%d)", new Object[] { Integer.valueOf(this.h) });
    }
  }
  
  public static final class Tw extends ms {
    public boolean h(Lm param1Lm1, Lm param1Lm2) {
      return true;
    }
    
    public String toString() {
      return "*";
    }
  }
  
  public static final class V extends pt {
    public V(int param1Int1, int param1Int2) {
      super(param1Int1, param1Int2);
    }
    
    protected int V0(Lm param1Lm1, Lm param1Lm2) {
      return param1Lm2.N() + 1;
    }
    
    protected String j() {
      return "nth-child";
    }
  }
  
  public static final class W extends HA {
    public W(String param1String1, String param1String2) {
      super(param1String1, param1String2);
    }
    
    public boolean h(Lm param1Lm1, Lm param1Lm2) {
      boolean bool;
      if (param1Lm2.i4(this.h) && AR.h(param1Lm2.j(this.h)).contains(this.V0)) {
        bool = true;
      } else {
        bool = false;
      } 
      return bool;
    }
    
    public String toString() {
      return String.format("[%s*=%s]", new Object[] { this.h, this.V0 });
    }
  }
  
  public static final class aF extends ms {
    private final String h;
    
    public aF(String param1String) {
      this.h = param1String;
    }
    
    public boolean h(Lm param1Lm1, Lm param1Lm2) {
      return param1Lm2.w().equals(this.h);
    }
    
    public String toString() {
      return String.format("%s", new Object[] { this.h });
    }
  }
  
  public static final class c extends HA {
    public c(String param1String1, String param1String2) {
      super(param1String1, param1String2);
    }
    
    public boolean h(Lm param1Lm1, Lm param1Lm2) {
      boolean bool;
      if (param1Lm2.i4(this.h) && this.V0.equalsIgnoreCase(param1Lm2.j(this.h).trim())) {
        bool = true;
      } else {
        bool = false;
      } 
      return bool;
    }
    
    public String toString() {
      return String.format("[%s=%s]", new Object[] { this.h, this.V0 });
    }
  }
  
  public static final class cy extends ms {
    public boolean h(Lm param1Lm1, Lm param1Lm2) {
      boolean bool;
      param1Lm1 = param1Lm2.lu();
      if (param1Lm1 != null && !(param1Lm1 instanceof HZ) && param1Lm2.N() == 0) {
        bool = true;
      } else {
        bool = false;
      } 
      return bool;
    }
    
    public String toString() {
      return ":first-child";
    }
  }
  
  public static final class d extends ms {
    private final String h;
    
    public d(String param1String) {
      R2.BQ(param1String);
      this.h = AR.h(param1String);
    }
    
    public boolean h(Lm param1Lm1, Lm param1Lm2) {
      Iterator<tF> iterator = param1Lm2.I().oC().iterator();
      while (iterator.hasNext()) {
        if (AR.h(((tF)iterator.next()).V0()).startsWith(this.h))
          return true; 
      } 
      return false;
    }
    
    public String toString() {
      return String.format("[^%s]", new Object[] { this.h });
    }
  }
  
  public static final class i extends HA {
    public i(String param1String1, String param1String2) {
      super(param1String1, param1String2, false);
    }
    
    public boolean h(Lm param1Lm1, Lm param1Lm2) {
      boolean bool;
      if (param1Lm2.i4(this.h) && AR.h(param1Lm2.j(this.h)).startsWith(this.V0)) {
        bool = true;
      } else {
        bool = false;
      } 
      return bool;
    }
    
    public String toString() {
      return String.format("[%s^=%s]", new Object[] { this.h, this.V0 });
    }
  }
  
  public static final class j extends HA {
    public j(String param1String1, String param1String2) {
      super(param1String1, param1String2);
    }
    
    public boolean h(Lm param1Lm1, Lm param1Lm2) {
      return this.V0.equalsIgnoreCase(param1Lm2.j(this.h)) ^ true;
    }
    
    public String toString() {
      return String.format("[%s!=%s]", new Object[] { this.h, this.V0 });
    }
  }
  
  public static final class jH extends pt {
    public jH(int param1Int1, int param1Int2) {
      super(param1Int1, param1Int2);
    }
    
    protected int V0(Lm param1Lm1, Lm param1Lm2) {
      return (param1Lm2.lu() == null) ? 0 : (param1Lm2.lu().s().size() - param1Lm2.N());
    }
    
    protected String j() {
      return "nth-last-child";
    }
  }
  
  public static final class jP extends ms {
    private final Pattern h;
    
    public jP(Pattern param1Pattern) {
      this.h = param1Pattern;
    }
    
    public boolean h(Lm param1Lm1, Lm param1Lm2) {
      return this.h.matcher(param1Lm2.Oh()).find();
    }
    
    public String toString() {
      return String.format(":matchesOwn(%s)", new Object[] { this.h });
    }
  }
  
  public static final class kb extends ms {
    private final String h;
    
    public kb(String param1String) {
      this.h = param1String;
    }
    
    public boolean h(Lm param1Lm1, Lm param1Lm2) {
      return param1Lm2.hP(this.h);
    }
    
    public String toString() {
      return String.format(".%s", new Object[] { this.h });
    }
  }
  
  public static class lW extends pt {
    public lW(int param1Int1, int param1Int2) {
      super(param1Int1, param1Int2);
    }
    
    protected int V0(Lm param1Lm1, Lm param1Lm2) {
      int j;
      param1Lm1 = param1Lm2.lu();
      int i = 0;
      if (param1Lm1 == null)
        return 0; 
      Iterator<Lm> iterator = param1Lm2.lu().s().iterator();
      while (true) {
        j = i;
        if (iterator.hasNext()) {
          Lm lm = iterator.next();
          j = i;
          if (lm.XA().equals(param1Lm2.XA()))
            j = i + 1; 
          i = j;
          if (lm == param1Lm2)
            break; 
          continue;
        } 
        break;
      } 
      return j;
    }
    
    protected String j() {
      return "nth-of-type";
    }
  }
  
  public static final class oe extends ms {
    private final Pattern h;
    
    public oe(Pattern param1Pattern) {
      this.h = param1Pattern;
    }
    
    public boolean h(Lm param1Lm1, Lm param1Lm2) {
      return this.h.matcher(param1Lm2.e()).find();
    }
    
    public String toString() {
      return String.format(":matches(%s)", new Object[] { this.h });
    }
  }
  
  public static final class p extends ms {
    private final String h;
    
    public p(String param1String) {
      this.h = AR.h(param1String);
    }
    
    public boolean h(Lm param1Lm1, Lm param1Lm2) {
      return AR.h(param1Lm2.e()).contains(this.h);
    }
    
    public String toString() {
      return String.format(":contains(%s)", new Object[] { this.h });
    }
  }
  
  public static final class pK extends ms {
    public boolean h(Lm param1Lm1, Lm param1Lm2) {
      param1Lm1 = param1Lm2.lu();
      boolean bool2 = false;
      boolean bool1 = bool2;
      if (param1Lm1 != null)
        if (param1Lm1 instanceof HZ) {
          bool1 = bool2;
        } else {
          Iterator<Lm> iterator = param1Lm1.s().iterator();
          byte b = 0;
          while (iterator.hasNext()) {
            if (((Lm)iterator.next()).XA().equals(param1Lm2.XA()))
              b++; 
          } 
          bool1 = bool2;
          if (b == 1)
            bool1 = true; 
        }  
      return bool1;
    }
    
    public String toString() {
      return ":only-of-type";
    }
  }
  
  public static abstract class pt extends ms {
    protected final int V0;
    
    protected final int h;
    
    public pt(int param1Int1, int param1Int2) {
      this.h = param1Int1;
      this.V0 = param1Int2;
    }
    
    protected abstract int V0(Lm param1Lm1, Lm param1Lm2);
    
    public boolean h(Lm param1Lm1, Lm param1Lm2) {
      Lm lm = param1Lm2.lu();
      boolean bool2 = false;
      boolean bool3 = false;
      boolean bool1 = bool2;
      if (lm != null)
        if (lm instanceof HZ) {
          bool1 = bool2;
        } else {
          int i = V0(param1Lm1, param1Lm2);
          int j = this.h;
          if (j == 0) {
            bool1 = bool3;
            if (i == this.V0)
              bool1 = true; 
            return bool1;
          } 
          int k = this.V0;
          bool1 = bool2;
          if ((i - k) * j >= 0) {
            bool1 = bool2;
            if ((i - k) % j == 0)
              bool1 = true; 
          } 
        }  
      return bool1;
    }
    
    protected abstract String j();
    
    public String toString() {
      return (this.h == 0) ? String.format(":%s(%d)", new Object[] { j(), Integer.valueOf(this.V0) }) : ((this.V0 == 0) ? String.format(":%s(%dn)", new Object[] { j(), Integer.valueOf(this.h) }) : String.format(":%s(%dn%+d)", new Object[] { j(), Integer.valueOf(this.h), Integer.valueOf(this.V0) }));
    }
  }
  
  public static final class q extends ms {
    private final String h;
    
    public q(String param1String) {
      this.h = AR.h(param1String);
    }
    
    public boolean h(Lm param1Lm1, Lm param1Lm2) {
      return AR.h(param1Lm2.Oh()).contains(this.h);
    }
    
    public String toString() {
      return String.format(":containsOwn(%s)", new Object[] { this.h });
    }
  }
  
  public static final class qM extends HA {
    public qM(String param1String1, String param1String2) {
      super(param1String1, param1String2, false);
    }
    
    public boolean h(Lm param1Lm1, Lm param1Lm2) {
      boolean bool;
      if (param1Lm2.i4(this.h) && AR.h(param1Lm2.j(this.h)).endsWith(this.V0)) {
        bool = true;
      } else {
        bool = false;
      } 
      return bool;
    }
    
    public String toString() {
      return String.format("[%s$=%s]", new Object[] { this.h, this.V0 });
    }
  }
  
  public static final class s extends ms {
    public boolean h(Lm param1Lm1, Lm param1Lm2) {
      boolean bool1 = param1Lm1 instanceof HZ;
      boolean bool = false;
      Lm lm = param1Lm1;
      if (bool1)
        lm = param1Lm1.d1(0); 
      if (param1Lm2 == lm)
        bool = true; 
      return bool;
    }
    
    public String toString() {
      return ":root";
    }
  }
  
  public static final class sy extends u {
    public sy() {
      super(0, 1);
    }
    
    public String toString() {
      return ":last-of-type";
    }
  }
  
  public static class u extends pt {
    public u(int param1Int1, int param1Int2) {
      super(param1Int1, param1Int2);
    }
    
    protected int V0(Lm param1Lm1, Lm param1Lm2) {
      param1Lm1 = param1Lm2.lu();
      int j = 0;
      if (param1Lm1 == null)
        return 0; 
      Dv dv = param1Lm2.lu().s();
      int i = param1Lm2.N();
      while (i < dv.size()) {
        int k = j;
        if (((Lm)dv.get(i)).XA().equals(param1Lm2.XA()))
          k = j + 1; 
        i++;
        j = k;
      } 
      return j;
    }
    
    protected String j() {
      return "nth-last-of-type";
    }
  }
  
  public static final class uJ extends ms {
    public boolean h(Lm param1Lm1, Lm param1Lm2) {
      if (param1Lm2 instanceof t)
        return true; 
      for (IG iG : param1Lm2.J()) {
        t t = new t(iP.n(param1Lm2.MC()), param1Lm2.oC(), param1Lm2.I());
        iG.To(t);
        t.rl(iG);
      } 
      return false;
    }
    
    public String toString() {
      return ":matchText";
    }
  }
  
  public static final class x extends ms {
    Pattern V0;
    
    String h;
    
    public x(String param1String, Pattern param1Pattern) {
      this.h = AR.V0(param1String);
      this.V0 = param1Pattern;
    }
    
    public boolean h(Lm param1Lm1, Lm param1Lm2) {
      boolean bool;
      if (param1Lm2.i4(this.h) && this.V0.matcher(param1Lm2.j(this.h)).find()) {
        bool = true;
      } else {
        bool = false;
      } 
      return bool;
    }
    
    public String toString() {
      return String.format("[%s~=%s]", new Object[] { this.h, this.V0.toString() });
    }
  }
  
  public static final class yh extends ms {
    private final String h;
    
    public yh(String param1String) {
      this.h = param1String;
    }
    
    public boolean h(Lm param1Lm1, Lm param1Lm2) {
      return param1Lm2.i4(this.h);
    }
    
    public String toString() {
      return String.format("[%s]", new Object[] { this.h });
    }
  }
  
  public static final class z extends lW {
    public z() {
      super(0, 1);
    }
    
    public String toString() {
      return ":first-of-type";
    }
  }
}


/* Location:              /Users/hetaiyi/Desktop/my/tech/java/study/aa/temp/temp.jar!/com/github/catvod/spider/merge/ms.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       1.1.3
 */